<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/21 0021
 * Time: 上午 11:12
 */
namespace app\message\validate;
class Vali_mes{
    const Errmsg = [
        'title.require'         => 10014,#标题不能为空
        'content.require'       => 10015,#内容不能为空
        'uid.require'           => 10011,#参数不能为空
        'id.require'            => 10011,#参数不能为空
    ];
    public static function mes_add(){
        $rule =[
            'title' =>'require',
            'content'=>'require',
            'uid'=>'require'
        ];
        $message=self::Errmsg;
        return ['rule'=>$rule,'message'=>$message];
    }
    public static function mes_edit(){
        $rule =[
            'id'    =>'require',
        ];
        $message=self::Errmsg;
        return ['rule'=>$rule,'message'=>$message];
    }
}